package com.ssm.util;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * Created by Lenovo on 2019-10-18.
 */
@Component
@Aspect
public class Advice {
    @Before("execution(* com.ssm.util.Math.*(..))")
    public void before(){
        System.out.println("-----before advice---------");
    }
    @After("execution(* com.ssm.util.Math.*(..))")
    public void after(){
        System.out.println("-----after advice---------");
    }
}
